//
//  NearbyViewController.h
//  OrderSeat
//
//  Created by wangwei on 13-10-4.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SelectDistanceView.h"
#import "SelectCuisinesView.h"

@class NearbyDataSource;
@interface NearbyViewController : BaseViewController<SelectDistanceViewDelegate,SelectCuisinesViewDelegate>

@property (strong, nonatomic) IBOutlet UIButton *distanceToolButton;
@property (strong, nonatomic) IBOutlet UIButton *dishCatToolButton;

@property (strong, nonatomic) IBOutlet UIView *toolsBarView;
@property (strong, nonatomic) IBOutlet UITableView *shopTable;

@property (strong, nonatomic) CLLocation *location;
@property (strong, nonatomic) NearbyDataSource *dataSource;

@end

@interface NearbyDataSource : BaseDataSource<UITableViewDataSource,UITableViewDelegate>

@property (assign, nonatomic) int pageNumber;
@property (strong, nonatomic) NSMutableArray *shopList;
@property (strong, nonatomic) NearbyViewController *viewController;

- (void)fetchShopWithCuisines:(NSString*)cuisinesId distance:(NSString*)distance isLoadMore:(BOOL)isLoadMore;

@end
